import request from "@/config/request";

export const getResultReport = (param) => {
  return request({
    url: "/get_result_report",
    method: "GET",
    params: param,
    headers: {
      "Content-Type": "application/json", // 确保后端可以解析 JSON 数据
    },
  });
};

export const getResultErrLs = (param) => {
  return request({
    url: "/get_result_err_ls",
    method: "GET",
    params: param,
    headers: {
      "Content-Type": "application/json", // 确保后端可以解析 JSON 数据
    },
  });
};

export const getPlotWave = (param) => {
  return request({
    url: "/plot_wave",
    method: "GET",
    params: param,
    headers: {
      "Content-Type": "application/json", // 确保后端可以解析 JSON 数据
    },
  });
};

export const getAllType = (param) => {
  return request({
    url: "/get_all_type",
    method: "GET",
    params: param,
    headers: {
      "Content-Type": "application/json", // 确保后端可以解析 JSON 数据
    },
  });
};

export const getAllLineName = (param) => {
  return request({
    url: "/get_all_line_name",
    method: "GET",
    params: param,
    headers: {
      "Content-Type": "application/json", // 确保后端可以解析 JSON 数据
    },
  });
};
export const getSingleEvalReport = (param) => {
  return request({
    url: "/get_single_eval_report",
    method: "GET",
    params: param,
    headers: {
      "Content-Type": "application/json", // 确保后端可以解析 JSON 数据
    },
  });
};
